home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / mui / bcc_src.lha / Parser / test / App.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-05  |  1.5 KB  |  87 lines

  1. #ifndef APP_H
  2. #define APP_H
  3.  
  4. /* ---------------------------------------------- */
  5. /* BCC header. Inserted into every generated file */
  6. /* ---------------------------------------------- */
  7.  
  8. #ifndef _BCC_EVERY
  9. #define _BCC_EVERY
  10.  
  11. /* Includes necessary for every mui c code */
  12.  
  13. #include <proto/exec.h>
  14. #include <proto/muimaster.h>
  15. #include <libraries/mui.h>
  16.  
  17. #include <mui/muiextra.h>
  18.  
  19. #include <string.h>
  20.  
  21. /* defines that help adjusting to any compiler */
  22.  
  23. #ifdef _DCC
  24.     #define REG(x) __ ## x
  25.     #define ASM
  26.     #define SAVEDS __geta4
  27. #else
  28.     #define REG(x) register __ ## x
  29.  
  30.     #ifdef _STORM
  31.  
  32.             #define ASM
  33.             #define SAVEDS __saveds
  34.  
  35.     #else
  36.  
  37.         #if defined __MAXON__ || defined __GNUC__
  38.             #define ASM
  39.             #define SAVEDS
  40.         #else
  41.             #define ASM    __asm
  42.             #define SAVEDS __saveds
  43.         #endif
  44.     
  45.     #endif
  46.  
  47. #endif
  48.  
  49. #define CallSuper() DoSuperMethodA(cl, obj, msg)
  50. #define value (tag->ti_Data)
  51. #define GetData() INST_DATA(cl, obj)
  52.  
  53. #endif
  54. #include <proto/exec.h>
  55. #include <proto/muimaster.h>
  56. #include <libraries/mui.h>
  57. #include <proto/intuition.h>
  58.  
  59. typedef struct {
  60.  
  61.  
  62.     Object *win, *up, *down, *left, *right, *trig, *cycle, *inf, *strig;
  63.     Object *EJGup, *EJGdown, *EJGleft, *EJGright, *EJGtrig, *EJGstrig;
  64.     Object *lup, *ldown, *lleft, *lright, *ltrig, *lstrig;
  65.     Object *dval;
  66.  
  67.     STRPTR lastcont;
  68.     ULONG lastval;
  69.     UBYTE txbuf[ 20 ];
  70.  
  71.     
  72.     
  73.  
  74. } AppData;
  75.  
  76. /* Method Tags */
  77.  
  78. #define MUIA_App_State 0x8161048e
  79. #define MUIA_App_Port 0x816102a7
  80.  
  81. extern struct MUI_CustomClass *cl_App;
  82. #define AppObject NewObject( cl_App->mcc_Class, NULL
  83. struct MUI_CustomClass *App_Create( void );
  84.  
  85.  
  86. #endif
  87.